﻿using System.IO;

namespace JSH.ITDiplom.OOPC01.PersonalIdentityNumber.DataLayer
{
    /// <summary>
    /// Class to save a text file.
    /// </summary>
    public class SaveFile
    {
        /// <summary>
        /// Save text file
        /// </summary>
        /// <param name="filename">filename with full parth</param>
        /// <param name="contents">data contents to save</param>
        public static void save(string filename, string contents)
        {
            File.WriteAllText(filename, contents); 
        }
    }
}
